import { gql } from "@apollo/client";

export interface TimetableType {
  id: string;
  classDay: Date;
  startTime: string;
  endTime: string;
  limitNumber: number;
  orgId: string;
  courseId: string;
}

export const autoCreateTimetable_service = gql`
  mutation autoCreateTimetable($startDay: String!, $endDay: String!) {
    autoCreateTimetable(startDay: $startDay, endDay: $endDay) {
      message
      code
    }
  }
`;

export const getTodayTimetable_service = gql`
  query getTimetables($today: String!) {
    getTimetables(today: $today) {
      message
      page {
        total
      }
      data {
        id
        startTime
        endTime
        limitNumber
        orgId
        courseId
      }
    }
  }
`;
